package com.zhangzy.qm.util;

import java.util.List;
import java.util.Map;

/**
 * ��Ե���Entity����Ĳ�����.����5�ھ���ORMʵ�ַ���.
 * �ṩService��������ݿ����ӿ�
 * @Class Name Dao
 * @Author zhangzy
 * @Create In Jul 22, 2010
 * @param <T>
 */
public interface Dao<T> {
	
	/**
	 * ����ʵ�����
	 * @Methods Name save
	 * @Create In Jul 22, 2010 By zhangzy
	 * @param o
	 * @return Object
	 */
	public Object save(Object o) throws Exception;
	
	/**
	 * ����ʵ�����
	 * @Methods Name update
	 * @Create In Jul 22, 2010 By zhangzy
	 * @param o void
	 */
	public void update(Object o)throws Exception;

    /**
	 * �ṩ����idɾ��־û�����
	 * @param id void
	 */
	public void removeObject(Class clazz, Object id)throws Exception;
	
	/**
	 * ���ʵ��ID���Ҷ���
	 * @Methods Name getObjectById
	 * @Create In Jul 22, 2010 By zhangzy
	 * @param clazz
	 * @param id
	 * @return Object
	 */
	public Object getObjectById(Class clazz,Object id)throws Exception;
	
	/**
	 * ��ȡָ��������г־û�����
	 * @param clazz
	 * @return List
	 */
	public List getObjects(Class clazz)throws Exception;

	

	
}
